package com.yeyks.dal.dao;

import com.yeyks.dal.domain.RechargeRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RechargeRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RechargeRecord record);

    int insertSelective(RechargeRecord record);

    RechargeRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RechargeRecord record);

    int updateByPrimaryKey(RechargeRecord record);

    RechargeRecord selectOrderByOrderNo(String orderNo);

    Integer updateByOrderNoAndStatus(@Param("orderNo") String orderNo, @Param("status") int status);

    Integer selectCountByInviteId(@Param("inviteId") String inviteId);

    List<RechargeRecord> selectByUserIdAndStatus(@Param("userId") Integer userId, @Param("status") Integer status);
}